<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>

<html>
   <head>
   	  <link href="<%=request.getContextPath()%>/style/global.css" rel="stylesheet" type="text/css">
	  <script type="text/javascript" language="javascript" src="<%=request.getContextPath()%>/javascript/common.js"></script>
	  <title>Worksheet Demo home</title>
   </head>
   <html:form action="/tabmenu" >
 		<table align="center">
            <tr>
               <td align="center"><h1><bean:write name="tmaform" property="heading"/></h1></td>
            </tr> 
            <tr>
               <td>&nbsp;</td>
            </tr>            
            <tr>
               <td>
               		<table width="100%" border="1" bgcolor="#c7c7c7">  
               		   
               			
               			<tr>
               				<td>
               					<table>
               						<nested:iterate property="tabMenuInfo">
               						<tr valign="top">
               							<td><b>Subject: <nested:write property="name"/></b></td>
               							<td>
               								<table>
               									<nested:iterate property="topicInfo">
               									<tr valign="top">
               										<td><b>Topic: <nested:write property="name"/></b></td>
               										<td>
               											<table>
               												<nested:iterate property="links" id="link">
               												<tr valign="top">
               												    <td>Link Name: <nested:write property="name"/></td>
               													<td>Link: <nested:write property="link"/></td>
               												</tr>
               												</nested:iterate>
               											</table>
               										</td>
               									</tr>
               									</nested:iterate>
               								</table>
               							</td>
               						</tr>
               						</nested:iterate>
               					</table>
               				</td>
               			</tr>
               			<tr>
               				<td>&nbsp;</td>
               			</tr>                 		
                		<tr>
               				<td>Click <a href="<%=request.getContextPath()%>/tabmenu.do?action=home">here</a> for the tab menu demo home page</td>
               			</tr> 
               			<tr>
               				<td><hr></td>
               			</tr> 
               			<tr>
               				<td>Click <a href="<%=request.getContextPath()%>/success.do?action=home">here</a> to go to the home page</td>
               			</tr>   
               			<tr>
               				<td>Click <a href="<%=request.getContextPath()%>/signout.do?action=signout">here</a> to log out</td>
               			</tr>                 			             			             			               			              			               			            			             			
               		</table>
               </td>
            </tr> 
                                                    
		</table> 
   </html:form>
</html>